/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpa.entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author alphyon
 */
@Entity
@Table(name = "configuraciones")
@NamedQueries({@NamedQuery(name = "Configuraciones.findAll", query = "SELECT c FROM Configuraciones c"), @NamedQuery(name = "Configuraciones.findById", query = "SELECT c FROM Configuraciones c WHERE c.id = :id"), @NamedQuery(name = "Configuraciones.findByVariable", query = "SELECT c FROM Configuraciones c WHERE c.variable = :variable"), @NamedQuery(name = "Configuraciones.findByValor", query = "SELECT c FROM Configuraciones c WHERE c.valor = :valor"), @NamedQuery(name = "Configuraciones.findByTitulo", query = "SELECT c FROM Configuraciones c WHERE c.titulo = :titulo"), @NamedQuery(name = "Configuraciones.findByActivo", query = "SELECT c FROM Configuraciones c WHERE c.activo = :activo"), @NamedQuery(name = "Configuraciones.findByCategoria", query = "SELECT c FROM Configuraciones c WHERE c.categoria = :categoria"), @NamedQuery(name = "Configuraciones.findByComentario", query = "SELECT c FROM Configuraciones c WHERE c.comentario = :comentario")})
public class Configuraciones implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "variable")
    private String variable;
    @Column(name = "valor")
    private String valor;
    @Column(name = "titulo")
    private String titulo;
    @Column(name = "activo")
    private String activo;
    @Column(name = "categoria")
    private String categoria;
    @Column(name = "comentario")
    private String comentario;

    public Configuraciones() {
    }

    public Configuraciones(Integer id) {
        this.id = id;
    }

    public Configuraciones(Integer id, String variable) {
        this.id = id;
        this.variable = variable;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVariable() {
        return variable;
    }

    public void setVariable(String variable) {
        this.variable = variable;
    }

    public String getValor() {
        return valor;
    }

    public void setValor(String valor) {
        this.valor = valor;
    }

    public String getTitulo() {
        return titulo;
    }

    public void setTitulo(String titulo) {
        this.titulo = titulo;
    }

    public String getActivo() {
        return activo;
    }

    public void setActivo(String activo) {
        this.activo = activo;
    }

    public String getCategoria() {
        return categoria;
    }

    public void setCategoria(String categoria) {
        this.categoria = categoria;
    }

    public String getComentario() {
        return comentario;
    }

    public void setComentario(String comentario) {
        this.comentario = comentario;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Configuraciones)) {
            return false;
        }
        Configuraciones other = (Configuraciones) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "jpa.entidades.Configuraciones[id=" + id + "]";
    }

}
